Optimal. Leaf size=91 \[ \frac {3 \text {ArcTan}(\sinh (e+f x)) \cosh (e+f x)}{8 f \sqrt {a \cosh ^2(e+f x)}}-\frac {3 \tanh (e+f x)}{8 f \sqrt {a \cosh ^2(e+f x)}}-\frac {\tanh ^3(e+f x)}{4 f \sqrt {a \cosh ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3255, 3286,
2691, 3855} \begin {gather*} \frac {3 \cosh (e+f x) \text {ArcTan}(\sinh (e+f x))}{8 f \sqrt {a \cosh ^2(e+f x)}}-\frac {\tanh ^3(e+f x)}{4 f \sqrt {a \cosh ^2(e+f x)}}-\frac {3 \tanh (e+f x)}{8 f \sqrt {a \cosh ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2691
Rule 3255
Rule 3286
Rule 3855
Rubi steps
\begin {align*} \int \frac {\tanh ^4(e+f x)}{\sqrt {a+a \sinh ^2(e+f x)}} \, dx &=\int \frac {\tanh ^4(e+f x)}{\sqrt {a \cosh ^2(e+f x)}} \, dx\\ &=\frac {\cosh (e+f x) \int \text {sech}(e+f x) \tanh ^4(e+f x) \, dx}{\sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {\tanh ^3(e+f x)}{4 f \sqrt {a \cosh ^2(e+f x)}}+\frac {(3 \cosh (e+f x)) \int \text {sech}(e+f x) \tanh ^2(e+f x) \, dx}{4 \sqrt {a \cosh ^2(e+f x)}}\\ &=-\frac {3 \tanh (e+f x)}{8 f \sqrt {a \cosh ^2(e+f x)}}-\frac {\tanh ^3(e+f x)}{4 f \sqrt {a \cosh ^2(e+f x)}}+\frac {(3 \cosh (e+f x)) \int \text {sech}(e+f x) \, dx}{8 \sqrt {a \cosh ^2(e+f x)}}\\ &=\frac {3 \tan ^{-1}(\sinh (e+f x)) \cosh (e+f x)}{8 f \sqrt {a \cosh ^2(e+f x)}}-\frac {3 \tanh (e+f x)}{8 f \sqrt {a \cosh ^2(e+f x)}}-\frac {\tanh ^3(e+f x)}{4 f \sqrt {a \cosh ^2(e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 66, normalized size = 0.73 \begin {gather*} \frac {3 \text {ArcTan}(\sinh (e+f x)) \cosh (e+f x)+\tanh (e+f x) \left (3-6 \text {sech}^2(e+f x)-8 \tanh ^2(e+f x)\right )}{8 f \sqrt {a \cosh ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.44, size = 68, normalized size = 0.75
method | result | size |
default | \(\frac {3 \arctan \left (\sinh \left (f x +e \right )\right ) \left (\cosh ^{4}\left (f x +e \right )\right )-5 \left (\cosh ^{2}\left (f x +e \right )\right ) \sinh \left (f x +e \right )+2 \sinh \left (f x +e \right )}{8 \cosh \left (f x +e \right )^{3} \sqrt {a \left (\cosh ^{2}\left (f x +e \right )\right )}\, f}\) | \(68\) |
risch | \(-\frac {5 \,{\mathrm e}^{6 f x +6 e}-3 \,{\mathrm e}^{4 f x +4 e}+3 \,{\mathrm e}^{2 f x +2 e}-5}{4 \sqrt {\left ({\mathrm e}^{2 f x +2 e}+1\right )^{2} a \,{\mathrm e}^{-2 f x -2 e}}\, \left ({\mathrm e}^{2 f x +2 e}+1\right )^{3} f}+\frac {3 i \ln \left ({\mathrm e}^{f x}+i {\mathrm e}^{-e}\right ) \left ({\mathrm e}^{2 f x +2 e}+1\right ) {\mathrm e}^{-f x -e}}{8 f \sqrt {\left ({\mathrm e}^{2 f x +2 e}+1\right )^{2} a \,{\mathrm e}^{-2 f x -2 e}}}-\frac {3 i \ln \left ({\mathrm e}^{f x}-i {\mathrm e}^{-e}\right ) \left ({\mathrm e}^{2 f x +2 e}+1\right ) {\mathrm e}^{-f x -e}}{8 f \sqrt {\left ({\mathrm e}^{2 f x +2 e}+1\right )^{2} a \,{\mathrm e}^{-2 f x -2 e}}}\) | \(211\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 672 vs.
\(2 (86) = 172\).
time = 0.55, size = 672, normalized size = 7.38 \begin {gather*} \frac {\frac {15 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a}} - \frac {15 \, e^{\left (-f x - e\right )} + 55 \, e^{\left (-3 \, f x - 3 \, e\right )} + 73 \, e^{\left (-5 \, f x - 5 \, e\right )} - 15 \, e^{\left (-7 \, f x - 7 \, e\right )}}{4 \, \sqrt {a} e^{\left (-2 \, f x - 2 \, e\right )} + 6 \, \sqrt {a} e^{\left (-4 \, f x - 4 \, e\right )} + 4 \, \sqrt {a} e^{\left (-6 \, f x - 6 \, e\right )} + \sqrt {a} e^{\left (-8 \, f x - 8 \, e\right )} + \sqrt {a}}}{48 \, f} + \frac {\frac {15 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a}} - \frac {15 \, e^{\left (-f x - e\right )} - 73 \, e^{\left (-3 \, f x - 3 \, e\right )} - 55 \, e^{\left (-5 \, f x - 5 \, e\right )} - 15 \, e^{\left (-7 \, f x - 7 \, e\right )}}{4 \, \sqrt {a} e^{\left (-2 \, f x - 2 \, e\right )} + 6 \, \sqrt {a} e^{\left (-4 \, f x - 4 \, e\right )} + 4 \, \sqrt {a} e^{\left (-6 \, f x - 6 \, e\right )} + \sqrt {a} e^{\left (-8 \, f x - 8 \, e\right )} + \sqrt {a}}}{48 \, f} - \frac {3 \, {\left (\frac {3 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{\sqrt {a}} - \frac {3 \, e^{\left (-f x - e\right )} + 11 \, e^{\left (-3 \, f x - 3 \, e\right )} - 11 \, e^{\left (-5 \, f x - 5 \, e\right )} - 3 \, e^{\left (-7 \, f x - 7 \, e\right )}}{4 \, \sqrt {a} e^{\left (-2 \, f x - 2 \, e\right )} + 6 \, \sqrt {a} e^{\left (-4 \, f x - 4 \, e\right )} + 4 \, \sqrt {a} e^{\left (-6 \, f x - 6 \, e\right )} + \sqrt {a} e^{\left (-8 \, f x - 8 \, e\right )} + \sqrt {a}}\right )}}{32 \, f} - \frac {35 \, \arctan \left (e^{\left (-f x - e\right )}\right )}{32 \, \sqrt {a} f} - \frac {279 \, e^{\left (-f x - e\right )} + 511 \, e^{\left (-3 \, f x - 3 \, e\right )} + 385 \, e^{\left (-5 \, f x - 5 \, e\right )} + 105 \, e^{\left (-7 \, f x - 7 \, e\right )}}{192 \, {\left (4 \, \sqrt {a} e^{\left (-2 \, f x - 2 \, e\right )} + 6 \, \sqrt {a} e^{\left (-4 \, f x - 4 \, e\right )} + 4 \, \sqrt {a} e^{\left (-6 \, f x - 6 \, e\right )} + \sqrt {a} e^{\left (-8 \, f x - 8 \, e\right )} + \sqrt {a}\right )} f} + \frac {105 \, e^{\left (-f x - e\right )} + 385 \, e^{\left (-3 \, f x - 3 \, e\right )} + 511 \, e^{\left (-5 \, f x - 5 \, e\right )} + 279 \, e^{\left (-7 \, f x - 7 \, e\right )}}{192 \, {\left (4 \, \sqrt {a} e^{\left (-2 \, f x - 2 \, e\right )} + 6 \, \sqrt {a} e^{\left (-4 \, f x - 4 \, e\right )} + 4 \, \sqrt {a} e^{\left (-6 \, f x - 6 \, e\right )} + \sqrt {a} e^{\left (-8 \, f x - 8 \, e\right )} + \sqrt {a}\right )} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1328 vs.
\(2 (79) = 158\).
time = 0.41, size = 1328, normalized size = 14.59 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tanh ^{4}{\left (e + f x \right )}}{\sqrt {a \left (\sinh ^{2}{\left (e + f x \right )} + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {tanh}\left (e+f\,x\right )}^4}{\sqrt {a\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________